<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      span::before{
        content: "before....";
        color: red;
      }

      span::after{
        content: "after ...." ;
        color: blue;
      }
    </style>
  </head>
  <body>
     <span>data1</span>
     <hr>
     <span>data2</span>
     <hr>
     <span>data3</span>
     <hr>
  </body>
</html>
